package dsx.monitor;

import dsx.biz.SuperReq;
import dsx.dsxFrame.DsxFrame;
import dsx.macro.ReturnValue;

public class GetLibListReq extends SuperReq {

	String serverName;
	
	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	@Override
	public Object handle() {
		try {
			GetLibListAnsw answ = new GetLibListAnsw();
			answ.setRet(ReturnValue.succeed);
			answ.setNetConfig(DsxFrame.getServer(serverName).getConfig().getNetServerConfig());
			answ.setLibList(DsxFrame.getBizLibList(serverName));
			return answ;
		} catch (Exception ex) {
			return null;
		}
	}

}
